package o;

import com.huawei.appgallery.foundation.card.base.bean.AppInfoBean;
import java.util.HashMap;
import java.util.Map;

public class diy {
    private static diy ˊ;
    private Map<String, AppInfoBean> ˏ = new HashMap();

    public static diy ˊ() {
        if (ˊ == null) {
            ˊ = new diy();
        }
        return ˊ;
    }

    public void ˊ(String str, AppInfoBean appInfoBean) {
        if (!((cdg) cdb.ॱ(cdg.class)).ॱॱ(str)) {
            this.ˏ.put(str, appInfoBean);
        }
    }

    public Map<String, AppInfoBean> ˋ() {
        return this.ˏ;
    }

    public void ˎ(String str) {
        this.ˏ.remove(str);
    }

    public boolean ˎ() {
        if (CollectCheck.isEmpty(this.ˏ)) {
            return false;
        }
        return true;
    }

    public void ˏ() {
        this.ˏ.clear();
    }
}
